package com.bawei.mall.product.controller;

import com.bawei.common.core.domain.R;
import com.bawei.mall.product.domain.MallProductHome;
import com.bawei.mall.product.service.MallProductHomeInfoService;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/home")
public class MallProductHomeInfoController {
    @Autowired
    private MallProductHomeInfoService mallProductHomeInfoService;

    /**
     * 首页信息展示
     * @return
     */
    @GetMapping("/content")
    @ApiModelProperty("首页信息展示")
    public R<MallProductHome>  content(){
        R<MallProductHome> list = mallProductHomeInfoService.content();
        return list;
    }

}
